{% extends "base.html" %}

<% block class %>log<% endblock %>

{% block main %}

  {% if form.has_errors %}
    <p class="error">Sorry, old password is not correct or new passwords do not match!</p>
    <p class="error">Please try again!</p>
  {% endif %}

  <form action='.' method='post'>
    <table>
    <tr><th><label for="id_old_password">Old Password:</label></th><td>{{ form.old_password }}</td></tr>
    <tr><th><label for="id_new_password1">New Password:</label></th><td>{{ form.new_password1 }}</td></tr>
    <tr><th><label for="id_new_password2">New Password(repeat):</label></th><td>{{ form.new_password2 }}</td></tr>
    </table>
    <input type="submit" value="Change" />
    <input type="hidden" name="next" value="/" />
  </form>

{% endblock %}
